import { container } from '../types';
import { EditorService } from '../services/EditorService';
import { ToolbarService } from '../services/ToolbarService';
import { PanelService } from '../services/PanelService';
import { ViewService } from '../services/ViewService';
import { MessageService } from '../services/MessageService';
import { ModeRegistry } from '../services/ModeRegistry';
import { IEditorService, IToolbarService, IPanelService, IViewService, IMessageService, IModeRegistry } from '../types';

// 绑定服务
container.bind<IEditorService>('IEditorService').to(EditorService).inSingletonScope();
container.bind<IToolbarService>('IToolbarService').to(ToolbarService).inSingletonScope();
container.bind<IPanelService>('IPanelService').to(PanelService).inSingletonScope();
container.bind<IViewService>('IViewService').to(ViewService).inSingletonScope();
container.bind<IMessageService>('IMessageService').to(MessageService).inSingletonScope();
container.bind<IModeRegistry>('IModeRegistry').to(ModeRegistry).inSingletonScope();

export { container }; 